<template>
  <div>
    <h2>App根组件</h2>
    <MyLeft></MyLeft>
    <MyRight></MyRight>
  </div>
</template>

<script>
//1.导入组件
import MyLeft from './components/Left.vue'
// import MyRight from './components/right.vue'
// @表示src文件夹
import MyRight from './components/Right.vue'
export default {
    //注册组件（就是注册一个html标签
    components: {
        // 键（HTML标签）:值（导入的组件）
        MyLeft:MyLeft,
        MyRight:MyRight
    }
}
</script>

<style>

</style>